home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
allowo1g
/
domtree.htc
< prev
next >
Wrap
Text File
|
1999-07-11
|
915b
|
43 lines
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="rollOn()" />
<PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="rollOff()" />
<PUBLIC:ATTACH EVENT="onclick" ONEVENT="ExpandCollapse()" />
<SCRIPT LANGUAGE="JScript">
function rollOn() {
with (event.srcElement) {
if (className=="clParent") {
with (runtimeStyle) {
cursor = "hand";
textDecoration = "underline";
}
event.cancelBubble = true;
}
}
}
function rollOff() {
with (event.srcElement) {
if (className=="clParent") {
with (runtimeStyle) {
cursor = "auto";
textDecoration = "none";
}
event.cancelBubble = true;
}
}
}
function ExpandCollapse() {
with (event.srcElement) {
if (className=="clParent") {
with (nextSibling.runtimeStyle) {
display = (display == "") ? "block" : "";
}
event.cancelBubble = true;
}
}
}
</SCRIPT>
</PUBLIC:COMPONENT>